package com.itheima.consumer.feign;

import com.itheima.consumer.domain.Goods;
import org.springframework.stereotype.Component;

/**
 * @program: spring-cloud-parent
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-03 11:50
 **/
@Component
public class GoodsFeignClientFallBack implements GoodsFeignClient {
    
    @Override
    public Goods findGoodsById(int id) {
        Goods goods = new Goods();
        
        goods.setTitle("消费端降级了");
        return goods;
    }
}
